<?php
include_once( '../ps-metabase-inc.php' );

// Get Instance of MetaBase using defaults
$ms = new ps_MetaBase( array());

//for ( $i = 0; $i <= 255; $i++ ) {
//$ms->pStore( 'test-' . $i , $i);
//echo " " . $ms->Fetch('test-' . $i) . "\n";
//}

$ms->pStore('thekey', 'Testing123456');
echo $ms->Fetch('thekey'); 
echo "\n";
echo $ms->pFetch('thekey');


// Get Instance of MetaBase using BigFilesystem Driver
$ms = new ps_MetaBase( array( 'driver'=> array('name'=>'BigFilesystem') ) );

//for ( $i = 0; $i <= 255; $i++ ) {
//$ms->pStore( 'test-' . $i , $i);
//echo " " . $ms->Fetch('test-' . $i) . "\n";
//}

$ms->pStore('thekey', 'Testing123456');
echo $ms->Fetch('thekey'); 
echo "\n";
echo $ms->pFetch('thekey');
?>
